package cn.xuewei.mapper;

import cn.xuewei.pojo.entity.Comment;
import cn.xuewei.pojo.vo.CommentVO;
import cn.xuewei.pojo.vo.UserInfoVOComment;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper {

    void insert(Comment comment);

    List<CommentVO> findByContentId(Long id);

    List<CommentVO> findByParentId(Long id);

    void deletePById(Long id);
    void deleteById(Long id);

    UserInfoVOComment getUserInfoByCommentId(Long id);

}
